/*
========================================================================
 Name        : AutoKeyLockSettingsSettings.cpp
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
/**
 *	Generated helper class which manages the settings contained 
 *	in 'AutoKeyLockSettings'.  Each CAknSettingItem maintains
 *	a reference to data in this class so that changes in the setting
 *	item list can be synchronized with this storage.
 */
 
// [[[ begin generated region: do not modify [Generated Includes]
#include <e32base.h>
#include <stringloader.h>
#include <barsread.h>
#include <AutoKeyLock.rsg>
#include "AutoKeyLockSettingsSettings.h"
// ]]] end generated region [Generated Includes]
#include <eikbtgpc.h>
/**
 * C/C++ constructor for settings data, cannot throw
 */
TAutoKeyLockSettingsSettings::TAutoKeyLockSettingsSettings()
	{
	}

/**
 * Two-phase constructor for settings data
 */
TAutoKeyLockSettingsSettings* TAutoKeyLockSettingsSettings::NewL()
	{
	TAutoKeyLockSettingsSettings* data = new( ELeave ) TAutoKeyLockSettingsSettings;
	CleanupStack::PushL( data );
	data->ConstructL();
	CleanupStack::Pop( data );
	return data;
	}
	
/**
 *	Second phase for initializing settings data
 */
void TAutoKeyLockSettingsSettings::ConstructL()
	{
	// [[[ begin generated region: do not modify [Generated Initializers]
	SetBinarySettingAutoLock( 1 );
	SetSliderAutoLockPeriod( 10 );
	SetBinarySettingAutoStart( 1 );
	// ]]] end generated region [Generated Initializers]
	CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
	cba->SetCommandSetL(R_AUTOKEYLOCK_SOFTKEYS_OPTIONS_HIDE);
	cba->DrawNow();
	}
	
// [[[ begin generated region: do not modify [Generated Contents]
TBool& TAutoKeyLockSettingsSettings::BinarySettingAutoLock()
	{
	return iBinarySettingAutoLock;
	}

void TAutoKeyLockSettingsSettings::SetBinarySettingAutoLock(const TBool& aValue)
	{
	iBinarySettingAutoLock = aValue;
	}

TInt& TAutoKeyLockSettingsSettings::SliderAutoLockPeriod()
	{
	return iSliderAutoLockPeriod;
	}

void TAutoKeyLockSettingsSettings::SetSliderAutoLockPeriod(const TInt& aValue)
	{
	iSliderAutoLockPeriod = aValue;
	}

TBool& TAutoKeyLockSettingsSettings::BinarySettingAutoStart()
	{
	return iBinarySettingAutoStart;
	}

void TAutoKeyLockSettingsSettings::SetBinarySettingAutoStart(const TBool& aValue)
	{
	iBinarySettingAutoStart = aValue;
	}

// ]]] end generated region [Generated Contents]

